﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Sharp.Infrastructure.Interfaces;

namespace Sharp.DataTransferObject
{
    /// <summary>
    /// 业务组织列表
    /// </summary>
    public class OrgForBusinessListDTO : IDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 业务组织id
        /// </summary>
        public Guid OrgForBusinessId { get; set; }
        /// <summary>
        /// 组织id
        /// </summary>
        /// <value>组织id</value>
        public Guid OrgId { get; set; }
        /// <summary>
        /// 上级
        /// </summary>
        /// <value>父Id</value>
        [Display(Name = "上级")]
        public System.Guid? ParentId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        /// <value>排序的值</value>
        public int OrderIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 组织结构
        /// </summary>
        /// <value>The org.</value>
        public OrgDTO Org { get; set; }
        /// <summary>
        /// 业务组织结构
        /// </summary>
        /// <value>The org for business.</value>
        public OrgForBusinessDTO OrgForBusiness { get; set; }
    }
}
